﻿
using FreeSql.DataAnnotations;

namespace FreeSql
{
    public abstract class BaseIdEntity : BaseIdEntity<long>
    {
        [Column( Position = 1, IsPrimary = true)]
        [Snowflake]
        public override long Id { get; set; }
    }
    public abstract class BaseIdEntity<T> : IBaseId<T>
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column( Position = 1, IsPrimary = true)]
        [Snowflake]
        public virtual T Id { get; set; }

    }
}
